package com.example.springboot_demo2.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// lombok 在编译阶段
@RestController
@Slf4j
public class LogController {

    @RequestMapping("/log/sayHi")
    public String sayJi() {
        log.info("log info");
        log.error("log error");
        return "log sayHi";
    }
}
